import request from "@/utils/request";


// 获取所有系统用户列表
export const queryAllConsultant = (page, pageSize,name) =>
    request.get('/consultant/search', {
        params: {
            page, pageSize,name
        }
    }).then((result)=>result.data);


// 添加
export const addConsultant = (consultant) =>
    request.post('/consultant/add', consultant).then((result)=>result.data);
// 获取所有系统用户列表
export const updateConsultant = (consultant) =>
    request.put('/consultant/update', consultant).then((result)=>result.data);

// 删除
export const deleteConsultant = (ids) =>
    request.put('/consultant/delete', ids).then((result)=>result.data);